-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gallery block: Add images size selector #18581
Conversation
9f88bfb
to
9042e51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mmtr, thank you for this PR. It worked great on my tests. I just left a comment related to the number of network requests we could be making.
9042e51
to
231da67
Compare
Applied these changes on my localhost, seems to pass my manual tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worked well on my tests 👍
231da67
to
3c6f371
Compare
@mmtr I installed Gutenberg 7.2 but I can't see image size selector? |
It only shows up when the gallery block contains an image coming from the media library. If the gallery block is empty or contains only images that are just URLs, the selector won't cause any effect and thus is hidden. Can you verify you are not using the gallery block under one of these scenarios? |
It's interesting I tried it another computer and it's show it now. Cookies possible :) Thanks Edit: It setup as a thumbnail but at the single-post page, it still serving image full size instead of thumbnail. Link |
Let's move the discussion to #19556 |
Description
Add an image size selector to the gallery block that allows users to choose the size of the images. It defaults to the large size.
Fixes #1450
How has this been tested?
Manually, following the steps below:
Screenshots
Types of changes
Enhancement.
Checklist: